package homework02;

public class GameTest {
    public static void main(String[] args) {
        GameFiveChess gf = new GameFiveChess();
        gf.draw();
        System.out.println("------------------开始对弈----------------------");
        String str = "黑";
        while (true) {
            gf.play(str);
            gf.draw();
            boolean ss1 = gf.success();
            if (ss1) {
                System.out.println("------------------------" + str + "方胜利！--------------------------");
                System.out.println("------------------------绘制成功--------------------------");
                break;
            }
            if (str.equals("黑")) {
                str = "白";
            } else {
                str = "黑";
            }
        }
    }
}
